package com.cee.service.Impl;

import com.cee.dao.OptionOneSelectMapper;
import com.cee.model.OptionOneSelect;
import com.cee.service.OptionOneSelectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@Transactional
public class OptionOneSelectServiceImpl implements OptionOneSelectService {

    @Autowired
    private OptionOneSelectMapper optionOneSelectMapper;


    @Override
    public int addOptionOneSelect(OptionOneSelect optionOneSelect) {
        return optionOneSelectMapper.insert(optionOneSelect);
    }

    @Override
    public List<OptionOneSelect> getListById(Integer ceeOneSelectId) {
        return optionOneSelectMapper.getListById(ceeOneSelectId);
    }
}
